package com.scs.application.modules.outCheck.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.scs.application.core.entity.DataEntity;
import com.scs.application.modules.upgrade.db.annotation.EntityFieldAnnotation;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 *
 */
@Data
@Accessors(chain = true)
@TableName("view_spd_wo")
public class SpdWo extends DataEntity {


    // id ,在父类中处理

    @EntityFieldAnnotation(
            text = "出库单号",
            length = "20",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String woKey;

    @EntityFieldAnnotation(
            text = "品名",
            length = "255",
            not_null = true,
            default_value = "",
            comment = ""
    )
    private String matrName;

    @EntityFieldAnnotation(
            text = "品规",
            length = "255",
            not_null = true,
            default_value = "",
            comment = ""
    )
    private String matrSpec;

    @EntityFieldAnnotation(
            text = "单位（单品单位）",
            length = "10",
            not_null = true,
            default_value = "",
            comment = ""
    )
    private String matrUnit;

    @EntityFieldAnnotation(
            text = "配送仓库代码",
            length = "50",
            not_null = true,
            default_value = "",
            comment = ""
    )
    private String warehouseCodeFrom;

    @EntityFieldAnnotation(
            text = "目标仓库代码",
            length = "50",
            not_null = true,
            default_value = "",
            comment = ""
    )
    private String warehouseCodeTo;

    @EntityFieldAnnotation(
            text = "包装数量",
            length = "",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private Integer packageQty;

    @EntityFieldAnnotation(
            text = "批次",
            length = "30",
            not_null = true,
            default_value = "",
            comment = ""
    )
    private String lot;

    @EntityFieldAnnotation(
            text = "效期",
            length = "30",
            not_null = true,
            default_value = "",
            comment = ""
    )
    private String expDate;

    @EntityFieldAnnotation(
            text = "生产日期",
            length = "30",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String mfgDate;

    @EntityFieldAnnotation(
            text = "rfid标签",
            length = "32",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String rfid;

    @EntityFieldAnnotation(
            text = "sn标签",
            length = "32",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String sn;

    @EntityFieldAnnotation(
            text = "配送单状态",
            length = "10",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String opFlag;

}
